package cn.huiyunche.base.service.vo;

import org.dom4j.Document;
import org.dom4j.DocumentHelper;

/**
 * 易宝通知返回xml实体
 *
 * @author hdy [Tuffy]
 */
public class YeepayNotifyXmlRequestVo {

    private Document xml = DocumentHelper.createDocument(); // 根
    private String cmd = "cmd"; // 命令
    private String version = "version"; // 接口版本
    private String groupid = "group_Id"; // 总公司商户 编号
    private String metid = "mer_Id"; // 实际发起付 款的交易商 户编号
    private String batchNo = "batch_No"; // 打款批次号
    private String orderId = "order_Id"; // 订单号
    private String status = "status"; // 打款状态
    private String message = "message"; // 描述
    private String hmac = "hmac"; // 签名

    public YeepayNotifyXmlRequestVo() {
    }

    public YeepayNotifyXmlRequestVo(Document xml) {
        this.xml = xml;
    }

    public String getCmd() {
        return xml.getRootElement().elementText(this.cmd);
    }

    public String getVersion() {
        return xml.getRootElement().elementText(this.version);
    }

    public String getGroupid() {
        return xml.getRootElement().elementText(this.groupid);
    }

    public String getMetid() {
        return xml.getRootElement().elementText(this.metid);
    }

    public String getBatchNo() {
        return xml.getRootElement().elementText(this.batchNo);
    }

    public String getOrderId() {
        return xml.getRootElement().elementText(this.orderId);
    }

    public String getStatus() {
        return xml.getRootElement().elementText(this.status);
    }

    public String getMessage() {
        return xml.getRootElement().elementText(this.message);
    }

    public String getHmac() {
        return xml.getRootElement().elementText(this.hmac);
    }

}
